Return error (that isn't actually tested by caller, but that's OK becuase
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 28 Jul 2005 18:42:27 +0000 (18:42 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 28 Jul 2005 18:42:27 +0000 (18:42 +0000)
the return value isn't actually _used_ anyway...)

gpsbabel/gdb.c

index c914fbd01a5173527c0a9cbe45177db2661c2e68..b5eb8cf954b5193f89eae3dbc4d48f5ea71b1e40 100644 (file)
@@ -519,7 +519,7 @@ gdb_read_route(void)
        if (buff[0] == 1) gdb_fread_le(fin, buff, 8, 64, "min_alt");
            
        gdb_fread_le(fin, &count, sizeof(count), 32, "rte_count");
-       if (count <= 0) return;
+       if (count <= 0) return NULL;
        
        route = route_head_alloc();
        route->rte_name = xstrdup(xname);